package cn.edu.bishi;

import java.util.Scanner;

public class 构造数字矩阵 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt();
        int m = scanner.nextInt();




        StringBuilder stringBuilder = new StringBuilder();
        int k = 0;
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                stringBuilder.append((k++)%3);
            }
            k = i+1;
            stringBuilder.append("\n");
        }

        System.out.println(stringBuilder);
    }
}
